<?
        require_once('../inc/Orders.php');
        if(isset($_POST['sav']))
        {
            $post = $_POST;
			$tar = "Location: index.php";
            $newrow = Create($post);
            header($tar);
            die();				
       	}	
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>New Order</title>
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css">
    <style type="text/css" ">
        .error { color: red; }
    </style>
</head>

<body>
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">             
                <form class="form-horizontal" method="post" action="">
                    <div class=" control-group">
                        <label class="control-label" for="Customers_id">Customers_id:</label>
                        <div class="controls">
                            <input type="text" name="Customers_id" id="Customers_id" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="PaymentMethods_id">PaymentMethods_id:</label>
                        <div class="controls">
                            <input type="text" name="PaymentMethods_id" id="PaymentMethods_id" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="ShippingMethods_id">ShippingMethods_id:</label>
                        <div class="controls">
                            <input type="text" name="ShippingMethods_id" id="ShippingMethods_id" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="ShippingDate">Shipping Date:</label>
                        <div class="controls">
                            <input type="text" name="ShippingDate" id="ShippingDate" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="ETA">ETA:</label>
                        <div class="controls">
                            <input type="text" name="ETA" id="ETA" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="ShippingCost">Shipping Cost:</label>
                        <div class="controls">
                            <input type="text" name="ShippingCost" id="ShippingCost" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="SalesTax">Sales Tax:</label>
                        <div class="controls">
                            <input type="text" name="SalesTax" id="SalesTax" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="FinalCost">Final Cost:</label>
                        <div class="controls">
                            <input type="text" name="FinalCost" id="FinalCost" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="PaymentDate">Payment Date:</label>
                        <div class="controls">
                            <input type="text" name="PaymentDate" id="PaymentDate" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="Payment">Payment:</label>
                        <div class="controls">
                            <input type="text" name="Payment" id="Payment" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="Status">Status:</label>
                        <div class="controls">
                            <input type="text" name="Status" id="Status" value="" />
                        </div>
                    </div>
                    <input class="btn btn-primary" type="submit" value="Save" name="sav" />
                </form>
           </div>
       </div>
</body>
</html>